#ifndef Question_H
#define Question_H
#include <iostream>


class Question
{
public:
	Question();
	Question(std::string question, std::string right_answer, double point_right_answer,
		std::string student_answer, double point_student_answer);

	bool Check();
	void Read();
	void Write();

	friend std::ostream& operator<<(std::ostream& o, const Question& question);
	friend std::istream& operator>>(std::istream& i, Question& question);

	//Geters y Seters
	std::string GetQuestion() { return question; }
	void SetQuestion(std::string s) { question = s; }
	std::string GetRightAnswer() { return right_answer; }
	void SetRightAnswer(std::string s) { right_answer = s; }
	double GetPointRightAnswer() { return point_right_answer; }
	void SetPointRightAnswer(double d) { point_right_answer = d; }
	std::string GetStudentAnswer() { return student_answer; }
	void SetStudentAnswer(std::string s) { student_answer = s; }
	double GetPointStudentAnswer() { return point_student_answer; }
	void SetPointStudentAnswer(double d) { point_student_answer = d; }
	
private:
	std::string question;
	std::string right_answer;
	double point_right_answer;
	std::string student_answer;
	double point_student_answer;
};

#endif